import Main from '@/components/main'

export default [
    {
        path: '/login',
        name: 'login',
        meta: {
            title: 'Login - 登录',
            hideInMenu: true
        },
        component: () => import('@/views/login/login.vue')
    },
    {
        path: '/',
        name: '_home',
        redirect: '/home',
        component: Main,
        meta: {
            hideInMenu: true,
            notCache: true
        },
        children: [
            {
                path: '/home',
                name: 'home',
                meta: {
                    hideInMenu: true,
                    title: '首页',
                    notCache: true,
                    icon: 'md-home'
                },
                component: () => import('@/views/single-page/home')
            }
        ]
    },
    {
        path: '/teacherSupervisionHome',
        name: 'teacherSupervisionHome',
        meta: {
            title: '教师督导',
            hideInMenu: true
        },
        component: () => import("@/views/teacherSupervisionHome/teacherSupervisionHome"),
        children: [
            {
                path: 'home',
                name: 'home',
                meta: {
                    hideInMenu: false,
                    title: '首页',
                    icon: 'md-home'
                },
                component: () => import('@/views/teacherSupervisionHome/home')
            },
            {
                path: 'task',
                name: 'task',
                meta: {
                    hideInMenu: false,
                    title: '任务',
                    icon: 'ios-albums'
                },
                component: () => import('@/views/teacherSupervisionHome/task')
            },
        ]
    },
    {
        path: '/404',
        name: 'login',
        meta: {
            title: '401',
            hideInMenu: true
        },
        component: () => import('@/views/error-page/404.vue')
    },
    {
        path: '/components',
        name: 'components',
        meta: {
            icon: 'logo-buffer',
            title: '异常页面'
        },
        component: Main,
        children: [
            {
                path: 'error-page',
                name: 'error-page',
                meta: {
                    icon: '_qq',
                    title: '401'
                },
                component: () => import('@/views/error-page/401.vue')
            }
            , {
                path: 'count_to_page',
                name: '500',
                meta: {
                    icon: 'ios-backspace',
                    title: '500'
                },

            },
            {
                path: 'org_tree_page',
                name: '404',
                meta: {
                    icon: 'md-trending-up',
                    title: '404'
                },
                component: () => import('@/views/error-page/404.vue')
            }, {
                path: 'test',
                name: 'test',
                meta: {
                    icon: 'md-trending-up',
                    title: 'test'
                },
                component: () => import('@/views/error-page/test.vue')
            }
        ]
    },
    {
        path: '/systemSettings',
        name: 'systemSettings',
        meta: {
            icon: 'md-cog',
            title: '系统设置'
        },
        component: Main,
        children: [
            {
                path: 'user',
                name: 'user',
                meta: {
                    icon: 'ios-people',
                    title: '用户设置'
                },
                component: () => import('@/views/system/user.vue')
            },
            {
                path: 'code',
                name: 'code',
                meta: {
                    icon: 'logo-codepen',
                    title: '字段'
                },
                component: () => import('@/views/system/code.vue')
            },
            {
                path: 'announcement',
                name: 'announcement',
                meta: {
                    icon: 'md-notifications',
                    title: '公告'
                },
                component: () => import('@/views/system/announcement.vue')
            }
        ]
    }, {
        path: '/basicData',
        name: 'basicData',
        meta: {
            icon: 'ios-albums',
            title: '基础数据'
        },
        component: Main,
        children: [
            {
                path: 'collegeData',
                name: 'collegeData',
                meta: {
                    icon: 'md-barcode',
                    title: '学院数据'
                },
                component: () => import('@/views/basicData/collegeData.vue')
            },
            {
                path: 'professionalData',
                name: 'professionalData',
                meta: {
                    icon: 'ios-bookmarks',
                    title: '专业数据'
                },
                component: () => import('@/views/basicData/professionalData.vue')
            },
            {
                path: 'teacherData',
                name: 'teacherData',
                meta: {
                    icon: 'ios-bookmarks',
                    title: '教师数据'
                },
                component: () => import('@/views/basicData/teacherData.vue')
            },
            {
                path: 'timetableData',
                name: 'timetableData',
                meta: {
                    icon: 'ios-bookmarks',
                    title: '课程数据'
                },
                component: () => import('@/views/basicData/timetableData.vue')
            }
        ]
    },
  {
    path: '/indexSystem',
    name: 'indexSystem',
    meta: {
      icon: 'ios-paper',
      title: '指标体系'
    },
    component: Main,
    children: [
      {
        path: 'Quota',
        name: 'Quota',
        meta: {
          icon: "ios-options",
          title: '指标体系'
        },
        component: () => import('@/views/indexSystem/Quota.vue')
      }
    ]
  },
    {
        path: '/task',
        name: 'task',
        meta: {
            icon: "logo-codepen",
            title: '任务管理'
        },
        component: Main,
        children: [
            {
                path: 'taskType',
                name: 'taskType',
                meta: {
                    icon: "ios-apps",
                    title: '任务类型'
                },
                component: () => import('@/views/task/setTask.vue')
            },
            {
                path: 'setTask',
                name: 'setTask',
                meta: {
                    icon: "ios-cog-outline",
                    title: '设置任务'
                },
                component: () => import('@/views/task/setTask.vue')
            }
        ]
    }
]
